# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=geotagging
pkgver=0.6.1
pkgrel=0
pkgdesc="Photography geotagging tool"
url="https://github.com/jmlich/geotagging"
arch="all !s390x !ppc64le !armhf !riscv64" # Limited by qt5-qtwebengine
license="GPL-3.0-or-later"
makedepends="
	cmake
	exiv2-dev
	qt5-qtbase-dev
	qt5-qttools-dev
	qt5-qtwebengine-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/jmlich/geotagging/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No upstream test suite

build() {
	cmake -B build \
		-G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_DATADIR=/usr/share/geotagging

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
1e836348b92da377b82d441b5d56dd971acb0d6bf26aebe2db598f287a3ef04fd3d4bb733caaaa34fabb4130bb5f4a3f80e7c483a3c5afbb569a36ce2bd1d68b  geotagging-0.6.1.tar.gz
"
